#include "CharUtils.h"

HBufC8* wideToNarrowLC(const TDesC& aDesC)
	{
	HBufC8* ret = HBufC8::NewLC(aDesC.Length());
	ret->Des().Copy(aDesC);
	return ret;
	}
HBufC* narrowToWideLC(const TDesC8& aDesC)
	{
	HBufC* ret = HBufC::NewLC(aDesC.Length());
	ret->Des().Copy(aDesC);
	return ret;
	}

HBufC8* wideToNarrowL(const TDesC& aDesC)
	{
	HBufC8* ret = wideToNarrowLC(aDesC);
	CleanupStack::Pop();
	return ret;
	}
HBufC* narrowToWideL(const TDesC8& aDesC)
	{
	HBufC* ret = narrowToWideLC(aDesC);
	CleanupStack::Pop();
	return ret;
	}

